package cn.co4;

public class Ex1 {
	public static void main(String args[]) {
		System.out.println("这是一个异常处理的例子");
		try {
			int i = 10;
			i = i / 0;
		}catch(ArithmeticException e) {
			System.out.println("异常是:" + e.getMessage());
		}finally {
			System.out.println("finally 语句被执行");
		}
	}
}

